package containerlogistik.implementation;

import containerlogistik.interfaces.*;

public class NullPallet extends AbstractPallet {
        
    private NullPallet(BoundingBox boundingBox){
        this.boundingBox = boundingBox;
    }

    static Pallet valueOf(BoundingBox boundingBox) {
        return new NullPallet(boundingBox);
    }
    
    @Override
    public StowageLocation loc() {
        return this.loc;
    }

    @Override
    public boolean isFree() {
        return true;
    }

    @Override
    public boolean isBlocked() {
        return false;
    }

    @Override
    public boolean isOccupied() {
        return false;
    }

    @Override
    public int compareTo(Pallet o) {
        return Double.compare(this.mass().kg(), o.mass().kg());
    }
}
